<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <title>Title</title>
    <button id="btn" onclick="f()" style="width: 200px;height: 200px"></button>
    <script type="text/javascript" src="../js/common/jquery-1.7.2.min.js"></script>
</head>
<body>
<script>
function f() {
    // var url = 'http://120.79.245.60:8080/eooker/a/sys/userAPI/login/201610097027/123456';
    // var url = 'http://120.79.245.60:8080/eooker/a/sys/userAPI/course';
    //url += userNumber + '/' + userPass;
    var url = 'http://120.79.245.60:8080/eooker/a/sys/userAPI/room_number';

    // $.ajax({
    //     url: url,
    //     type: 'get',
    //     success: function(data) {
    //         if (data) {
    //           alert(1111);
    //         }
    //     },
    //     fail: function () {
    //         alert(11);
    //     }
    // })
    $.ajax({
        url: url,
        type: 'Get',
        dataType: 'JSON',
        crossDomain: true,
        success: function(data){
            // alert(data.resultMap.is_tutor)
            console.log(data);
        },
        fail: function (data) {
            alert(data);
        }
    });
}


</script>
</body>
</html>